Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODPersistentObject


InitPersistentObjectFromStorage

The InitPersistentObjectFromStorage method initializes this re-created persistent object from its stored data.

void InitPersistentObjectFromStorage (
                           in ODStorageUnit storageUnit);
storageUnit
A reference to a storage unit of this persistent object.
DISCUSSION
Your part editor should never call this method directly; it is called automatically whenever a persistent object is re-created from stored data. Every existing OpenDoc subclass of ODPersistentObject (including ODPart) has an InitClassFromStorage method to initialize an object of that class from its stored data; that method calls the inherited InitPersistentObjectFromStorage method and then reads any data that was previously written by the Externalize method when the object was stored. The object's factory method calls the object's InitClassFromStorage method when re-creating the object from its stored data.

For example, the ODFrame class has a private InitFrameFromStorage method. When you call the draft's AcquireFrame method to re-create a frame, that factory method calls the re-created frame's InitFrameFromStorage method.

SEE ALSO
The ODPart::InitPartFromStorage method (page 529).
The ODPersistentObject::Externalize method (page 558).
The ODPersistentObject::InitPersistentObject method (page 560).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help